package com.example.unruly_zhao.mopaide.util;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by xuchen on 2016/11/21.
 */
public class Toastutil {


        private static Toast mToast;

        public static void show(Context mContext, String text) {

            if (mToast != null) {
                mToast.setText(text);
            } else {
                mToast = Toast.makeText(mContext.getApplicationContext(), text, Toast.LENGTH_SHORT);
            }

            mToast.show();
        }

}
